cmake_minimum_required(VERSION 3.2.2)
project(tb_conv)

set(CMAKE_CXX_STANDARD 20)

# Debug option
option(DEBUG "Enable debug mode" OFF)

if(DEBUG)
    set(CMAKE_BUILD_TYPE Debug)
    set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -DDEBUG")
    message(STATUS "Debug mode enabled")
else()
    set(CMAKE_BUILD_TYPE Release)
    set(CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
    message(STATUS "Release mode enabled")
endif()

include_directories(/tools/Xilinx/2025.1/Vitis/include/)
add_executable(tb_im2col tb_im2col.cpp)
add_executable(tb_conv tb_conv.cpp)
add_executable(tb_deconv tb_deconv.cpp)
add_executable(tb_maxpool_2x2 tb_maxpool_2x2.cpp)
